package com.zhongli.devplatform.po.common;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.metadata.BaseRowModel;
import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.apache.poi.ss.usermodel.CellStyle;

import java.util.Date;
import java.util.HashMap;
import java.util.Map;

/**
 * @author  WuXiCheng
 * @date  2020/7/23 10:12
 * @version 1.0
 */
@ApiModel(value="com-zhongli-devplatform-po-ReadSchool")
@Data
@TableName(value = "read_school")
public class ReadSchoolPO extends BaseRowModel {
    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value="主键")
    private Integer id;

    /**
     * 学校名称
     */
    @TableField(value = "school_name")
    @ApiModelProperty(value="学校名称")
    @ExcelProperty(value = "学校名称", index = 0)
    private String schoolName;

    /**
     * 备注
     */
    @TableField(value = "comment")
    @ApiModelProperty(value="备注")
    @ExcelProperty(value = "备注", index = 1)
    private String comment;

    /**
     * 创建时间
     */
    @TableField(value = "create_time",fill = FieldFill.INSERT)
    @ApiModelProperty(value="创建时间")
    private Date createTime;

    @TableField(value = "create_user_id",fill = FieldFill.INSERT)
    @ApiModelProperty(value="")
    private Integer createUserId;

    @TableField(value = "update_time",fill = FieldFill.UPDATE)
    @ApiModelProperty(value="")
    private Date updateTime;

    @TableField(value = "update_user_id",fill = FieldFill.UPDATE)
    @ApiModelProperty(value="")
    private Integer updateUserId;

    /**
     * 导入excel相关字段
     */
    @TableField(exist = false)
    private Map<Integer, CellStyle> cellStyleMap = new HashMap<Integer,CellStyle>();

}